@distance-small: 10px;
@distance-default: 20px;
@distance-large: 40px;
@primary-color: #2d8cf0;
@default-background-color: #f9f9f9;
@left-container-width: 250px;
@ivew-input-width: 200px;

html,
body {
  height: 100%;
  background-color: @default-background-color;
  position: relative;
  padding: 0;
  margin: 0;
}

.input_width {
  width: @ivew-input-width;
}

.ivu-input,
.ivu-select {
  width: @ivew-input-width;
}

.input-order {
  .ivu-input {
    width: 100%;
  }
}

.inline-box {
  display: inline-block;
}

.ivu-select {
  vertical-align: unset
}

.subtitle {
  font-size: 14px;
  padding: 10px;
  font-weight: 700;
}

.ivu-btn-ghost {
  color: #515a6e;
}

.gvt-content {
  padding: @distance-small  !important;
  position: relative;

  .main {
    padding: @distance-default  !important;
  }
}

.LayoutList {
  .form-wrapper {
    // padding-bottom: @distance-default;

    .ivu-form-item {
      margin-bottom: @distance-default  !important;

      .ivu-form-item-content {
        height: 32px;
      }
    }
  }

  .tool-wrapper {
    padding-bottom: @distance-default;

    .tool-left {
      text-align: left;
    }

    .tool-right {
      text-align: right;
    }
  }

  .table-wrapper {
    .ivu-table {
      .ivu-btn-text {
        color: @primary-color;
        border-radius: 0;
        padding: 0;
        margin-right: @distance-default;
      }
    }
  }

  .page-wrapper {
    padding-top: @distance-default;
    text-align: right;
  }
}

.LayoutTree {
  min-height: 500px;

  &::after {
    display: block;
    content: "";
    clear: both;
  }

  .left-container {
    float: left;
    width: @left-container-width;

    .tree-tool-wrapper {
      padding-bottom: @distance-small;

      button {
        margin-bottom: @distance-small;
      }
    }
  }

  .distance-wrapper {
    position: absolute;
    left: @left-container-width + @distance-default + @distance-small;
    top: 0;
    bottom: 0;
    width: @distance-small;
    background: @default-background-color;
  }

  .right-container {
    margin-left: @left-container-width + @distance-default + @distance-small;

    &::after {
      display: block;
      content: "";
      clear: both;
    }

    .form-wrapper {
      padding-bottom: @distance-large;

      .ivu-form-item {
        margin-bottom: 0 !important;
      }
    }

    .tool-wrapper {
      padding-bottom: @distance-default;
      overflow: auto;

      .tool-left,
      .tool-right {
        display: block;
        width: 50%;
      }

      .tool-left {
        float: left;
        text-align: left;
      }

      .tool-right {
        float: right;
        text-align: right;
      }
    }

    .table-wrapper {
      .ivu-table {
        .ivu-btn-text {
          color: @primary-color;
          border-radius: 0;
          padding: 0;
          margin-right: @distance-default;
        }
      }
    }

    .page-wrapper {
      padding-top: @distance-default;
      float: left;
      width: 100%;
      text-align: right;
    }
  }
}

.ivu-input[disabled] {
  color: #999;
}

.console-gvt {
  .ivu-select {
    vertical-align: bottom;
  }
}

// 分页栏乱码
.ivu-page-item-jump-next:after,
.ivu-page-item-jump-prev:after {
  content: "\2022\2022\2022";
}

// 表格中的级联选择框，只是用来做展示用的
.table-cascader {
  .ivu-input[disabled] {
    color: #515a6e;

    &:hover {
      cursor: default;
    }
  }

  .ivu-input {
    border: none;
    background: none;
  }

  .ivu-icon {
    display: none;
  }
}

// 改变级联选择框弹窗的层级
.ivu-cascader-transfer {
  z-index: 1600 !important;
}

// 通用的md详情
.common-md-detail {

  .v-show-content {
    //内容区背景
    background: #fff !important;

    pre {
      //多行代码
      color: #333;
      background: #f8f8f8;
      overflow: auto;
      position: relative;

      code {
        font-size: 12px;
        padding: 15px 12px;
        margin: 0;
        word-break: normal;
        display: block;
        overflow-x: auto;
      }
    }

    // 单行代码
    p {
      margin: 10px 0;
      font-size: 14px;

      code {
        margin:0 5px;
        word-break: break-word;
        border-radius: 2px;
        overflow-x: auto;
        background-color: #fff5f5;
        color: #ff502c;
        padding: 3px;
        font-size: 12px;
      }
    }

    //列表
    ul {
      margin-left: 20px;
      font-size: 14px;

      li {
        margin: 5px 0;
      }
    }

    // 引用
    blockquote {
      color: #666;
      padding: 1px 23px;
      margin: 22px 0;
      border-left: 4px solid #cbcbcb;
      background-color: #f8f8f8;

      p {
        margin: 10px 0;
      }
    }

    // 图片
    img {
      padding: 0 10%;
      width: 100%;
      height: 80%;
    }

    // 标题
    h2 {
      margin: 20px 0;
    }

    h3 {
      margin: 15px 0;
    }

    h2 {
      margin: 20px 0;
    }
  }
}